package com.zeng.ssm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 描述信息
 *
 * @author zengwanlin
 * @date 2022-01-27T22:07
 */
@Controller
public class LoginController {

    @PostMapping("/login")
    public String login(String userNo, String password) {
        System.out.println(userNo);
        System.out.println(password);
        return "home";
    }

    @PostMapping("/logout")
    public String login(@RequestBody String id) {
        System.out.println(id);
        return "login";
    }

}
